<template>
    <div class="user-profile-container">
        <el-card shadow="hover" class="user-profile-card">
            <el-form label-width="120px" label-position="top">
                <!-- 企业logo上传 -->
                <el-form-item label="会员头像" class="form-item-logo">
                    <el-form class="avatar-uploader">
                        <img v-if="param.imgSrc" :src="param.imgSrc" />
                        <div v-else class="default-logo">
                            <i class="logo-icon"></i>
                        </div>
                    </el-form>
                </el-form-item>

                <!-- 企业信息 -->
                <el-form-item label="会员名称">
                    <el-input value="理塘丁真" disabled></el-input>
                </el-form-item>

                <el-form-item label="UID">
                    <el-input value="TC11400956" disabled></el-input>
                </el-form-item>

                <el-form-item label="真实姓名">
                    <el-input value="张三" disabled></el-input>
                </el-form-item>

                <el-form-item label="联系方式">
                    <el-input value="111-222-333" disabled></el-input>
                </el-form-item>

                <el-form-item label="会员等级">
                    <el-input value=" 👑VIP3 " disabled></el-input>
                </el-form-item>

                <el-form-item label="注册日期">
                    <el-input value="2024-10-10" disabled></el-input>
                </el-form-item>
            </el-form>
        </el-card>
    </div>
</template>

<script>
export default {
    data() {
        return {
            param: {}
        };
    },
    methods: {

    },
    created() {

    }
};
</script>

<style scoped>
.user-profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 97vw;
    /* 将容器宽度设置为视口宽度 */
    height: 90vh;
    /* 将容器高度设置为视口高度 */
    padding: 40px;
    /* 增加内边距 */
    box-sizing: border-box;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.user-profile-card {
    width: 100%;
    max-width: 1400px;
    /* 增大卡片的最大宽度 */
    padding: 40px;
    /* 增加内边距 */
    border-radius: 20px;
    /* 增大圆角 */
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.user-profile-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.el-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    /* 增大表单项之间的间距 */
}

.el-form-item {
    margin-bottom: 18px;
    /* 增大表单项之间的间距 */
}

.avatar-uploader {
    width: 120px;
    /* 增大logo上传区域 */
    height: 120px;
    border-radius: 50%;
    border: 1px dashed #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    background-color: #f0f0f0;
}

.default-logo {
    width: 120px;
    /* 增大logo的默认图标 */
    height: 120px;
    background-image: url('./css/logo.svg');
    background-size: cover;
    background-position: center;
}

.el-input {
    background: #f9f9f9;
    border-radius: 8px;
    /* 增大圆角 */
    padding: 14px;
    /* 增加内边距 */
    font-size: 18px;
    /* 增大字体 */
}

.el-input[disabled] {
    background-color: #fafafa;
    color: #999;
    cursor: not-allowed;
}

.form-item-logo {
    grid-column: span 2;
    /* 让logo独占一行 */
    text-align: center;
}
</style>
